﻿using QuanLyNhaSach.DataAccessLayer;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLyNhaSach
{
    public partial class QuanLyNhaSach : Form
    {
        public QuanLyNhaSach()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //KhachHangDAO khDAO = new KhachHangDAO();
            //data_view.DataSource = khDAO.LayDanhSach();
            //HoaDonDAO h = new HoaDonDAO();
            //data_view.DataSource = h.XemHoaDon();
        }

        private void QLBanHang_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            QuanLyBanHang_NS.QuanLyBanHang q = new QuanLyBanHang_NS.QuanLyBanHang();
            q.Show();            
        }

        private void QLBaoCao_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            QuanLyBaoCao_NS.QuanLyBaoCao q = new QuanLyBaoCao_NS.QuanLyBaoCao();
            q.Show();
        }

        private void QLSach_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            QuanLySach q = new QuanLySach();
            q.Show();
        }

        private void QLQuyDinh_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            QuanLyQuyDinh_NS.QuanLyQuyDinh q = new QuanLyQuyDinh_NS.QuanLyQuyDinh();
            q.Show();
        }

        private void TraCuuSach_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            TraCuu q = new TraCuu();
            q.Show();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            QuanLyKhachHang_NS.QuanLyKhachHang q = new QuanLyKhachHang_NS.QuanLyKhachHang();
            q.Show();
        }
    }
}
